'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/',controller.home.index);
  router.post('/register',controller.home.register);
  router.get('/verify',controller.home.verify);
  router.get('/jiema',controller.home.jiema);
  router.post('/login',controller.home.login);
  router.post('/forget',controller.home.forget);
	router.post('/rember', controller.home.rember);
  //王娟 
  router.get('/',app.controller.home.getmovie);
  router.get('/', controller.home.index);
  router.post('/register', controller.home.register);
  router.get('/verify', controller.home.verify);
  router.get('/jiema', controller.home.jiema);
  router.post('/login', controller.home.login);
  router.post('/forget', controller.home.forget);

  router.get('/', app.controller.home.getmovie);
  router.post('/addgoods', controller.home.addgoods);
  router.get('/zuire', controller.home.zuire);
  router.get('/huayu', controller.home.huayu);
  router.get('/oumei', controller.home.oumei);
  router.get('/rihan', controller.home.rihan);
  router.get('/danqu', controller.home.danqu);
  router.post('/addgoods11', controller.home.addgoods11);
  router.get('/bzlx', controller.home.bzlx);
  router.get('/sszk', controller.home.sszk);
  router.get('/xqydata', controller.home.xqydata);
  router.get('/getopinion', controller.home.getopinion);
  router.get('/publish', controller.home.publish);
  router.get('/alldata', controller.home.alldata);
  router.get('/keyword', controller.home.keyword);
  router.get('/getuserinfo', controller.home.getuserinfo);
  router.get('/outlogin', controller.home.outlogin);
  router.get('/wyhlunbo', controller.home.wyhlunbo);






















  // const {
  // 	router,
  // 	controller
  // } = app;
  router.post('/register', controller.home.register);
  router.get('/verify', controller.home.verify);
  router.get('/jiema', controller.home.jiema);
  router.post('/login', controller.home.login);
  router.post('/forget', controller.home.forget);
  router.post('/rember', controller.home.rember);

  /* 丁嘉 */
  router.post('/dj/add', controller.home.add);
  router.get("/dj/search", controller.home.search);
  router.get('/dj/getmovie', controller.home.getmovie);

  router.get('/', controller.home.getmovie);
  router.post('/addgoods', controller.home.addgoods);
  router.get('/zuire', controller.home.zuire);
  router.get('/huayu', controller.home.huayu);
  router.get('/oumei', controller.home.oumei);
  router.get('/rihan', controller.home.rihan);
  router.get('/danqu', controller.home.danqu);
  router.post('/addgoods11', controller.home.addgoods11);
  router.get('/bzlx', controller.home.bzlx);
  router.get('/sszk', controller.home.sszk);
  router.post('/share', controller.home.share);
  router.get('/pinlundata', controller.home.pinlundata);
  router.get('/getpinlun', controller.home.getpinlun);

  


	/* 丁嘉 */
	router.post('/dj/add', controller.home.add);
	router.get("/dj/search", controller.home.search);
	router.get('/dj/getmovie', controller.home.getmovie);

	router.get('/', controller.home.getmovie);

	
	// 同城页面
	router.get("/hotact", controller.home.hotact);
	router.get("/drama", controller.home.drama);
  /* 丁嘉 */
  router.post('/dj/add', controller.home.add);
  router.get("/dj/search", controller.home.search);
  router.get('/dj/getmovie', controller.home.getmovie);

  // 同城页面
  router.get("/hotact", controller.home.hotact);
  router.get("/drama", controller.home.drama);
};
